imcontextwayland: (Hopefully) fix if expression
authorTimm Bäder <mail@baedert.org>
Fri, 4 Jan 2019 04:55:26 +0000 (05:55 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 4 Jan 2019 04:55:26 +0000 (05:55 +0100)
gtk/gtkimcontextwayland.c

index 86ae4d43d4f1c0423e86f523c14af20929bad1aa..66ea4c86c91fb1f377cf7a89bd486d5e795f0545 100644 (file)
@@ -282,7 +282,7 @@ notify_surrounding_text (GtkIMContextWayland *context)
           end = &context->surrounding.text[MAX_LEN];
         }
       else if (context->surrounding.cursor_idx > len - MAX_LEN &&
-               context->surrounding.cursor_idx > len - MAX_LEN)
+               context->surrounding.anchor_idx > len - MAX_LEN)
         {
           start = &context->surrounding.text[len - MAX_LEN];
           end = &context->surrounding.text[len];